package com.zbkj.admin.boot.redisson.client;

import lombok.Getter;
import lombok.Setter;

import java.util.HashSet;
import java.util.Set;

/**
 * 主从配置
 *
 * @author L.cm
 */
@Getter
@Setter
public class MasterSlaveServersConfig extends BaseMasterSlaveServersConfig {

	/**
	 * Redis slave servers addresses
	 */
	private Set<String> slaveAddresses = new HashSet<>();

	/**
	 * Redis master server address
	 */
	private String masterAddress;

	/**
	 * Database index used for Redis connection
	 */
	private int database = 0;
}
